		<div class="row">
		    <div class="col-xs-12">
		        <div class="box box-primary">
		            <div class="box-header">
		                <h3 class="box-title">Tambah Data PPK</h3>
		            </div><!-- /.box-header -->
		            <?php echo form_open('ppk/save', array('role' => 'form', 'id' => 'form'));?>
		            <div class="box-body">				        
	                    <!-- text input -->
	                    <div class="form-group">
	                        <label>Kode PPK</label>
	                       	<input class="form-control input-sm" name="kd_ppk" type="text" placeholder="Kode ppk">
	                    </div>
	                    <div class="form-group">
	                        <label>PPK</label>
	                       	<input class="form-control input-sm" name="ppk" type="text" placeholder="Nama ppk">
	             
	                    </div>
	                    <div class="form-group">
	                        <label>Jenis PPK</label>
	                       	<select class="form-control input-sm" name="jenis_ppk">
	                       		<?php 
	                       			foreach ($jenis as $value) { ?>
	                       				<option value="<?php echo $value['id_jenis_ppk'] ?>"><?php echo $value['jenis_ppk'];?></option>
	                       		<?php		
	                       			}
	                       		?>
	                       	</select>

	                    </div>
	                    <div class="form-group">
	                        <label>Kelas PPK</label>
	                       	<select class="form-control input-sm" name="kelas_ppk">
	                       		<?php 
	                       			foreach ($kelas as $value) { ?>
	                       				<option value="<?php echo $value['id_kelas_ppk'] ?>"><?php echo $value['kelas_ppk'];?></option>
	                       		<?php		
	                       			}
	                       		?>
	                       	</select>

	                    </div>
	                    <div class="form-group">
	                        <label>Alamat</label>
	                       	<input class="form-control input-sm" name="alamat" type="text" placeholder="Alamat">
	             
	                    </div>
	                    <div class="form-group">
	                        <label>Direktur</label>
	                       	<input class="form-control input-sm" name="direktur" type="text" placeholder="Direktur">
	             
	                    </div>
	                    
		            </div>		                   
                    <div class="box-footer">
                         <button type="submit" class="btn btn-sm btn-primary btn-flat"><i class="fa fa-floppy-o"></i> Simpan</button>
                    </div>
								<?php echo form_close();?>
		        </div><!-- /.box -->                            
		    </div>
		</div>

		<script>
		$("#form").validate({
			rules: {
				
				kd_ppk: {
					required: true
				},
				ppk: {
					required: true
				},
				alamat: {
					required: true
				},
				direktur: {
					required: true
				},
			}
		});
		</script>